from datetime import datetime
from exts import db


class Device(db.Model):
    last_update_time = db.Column(db.DateTime, default=datetime.now(), primary_key=True)
    facility = db.Column(db.String(50), nullable=False)
    state = db.Column(db.String(50), nullable=False)